package com.echat.messagesender.sender.sms.bean;

import lombok.Getter;
import lombok.Setter;
import org.apache.http.util.Asserts;

/**
 * Created by huangzhilin on 2017/11/27.
 */
@Getter
@Setter
public class AliSmsConfig extends BaseSmsConfig{
    public String accessKeyId = null;
    public String accessKeySecret = null;

    /**
     * 添加了一个检查字段非空的方法
     */
    public void check(){
        Asserts.notEmpty(this.accessKeyId , "AliSmsConfig[accessKeyId]");
        Asserts.notEmpty(this.accessKeySecret , "AliSmsConfig[accessKeySecret]");
    }
}
